home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 January / macformat-033.iso / mac / Shareware City / Comms / Tricks Folder / Teaching / scripts / hello-world-02.script < prev    next >
Encoding:
Text File  |  1995-08-14  |  444 b   |  18 lines  |  [TEXT/ToyS]

  1. -- define the standard HTTP header
  2. set LF to ASCII character (10)
  3. set CR to return
  4. set CRLF to CR & LF
  5. set http_10_header to "HTTP/1.0 200 OK" & CRLF & ¬
  6.     "Server: MacHTTP" & CRLF & ¬
  7.     "MIME-Version: 1.0" & CRLF & ¬
  8.     "Content-type: text/html" & CRLF & CRLF
  9.  
  10. -- return the results as an HTML file
  11. return http_10_header & ¬
  12.     "<html>" & ¬
  13.     "<head>" & ¬
  14.     "<title>Hello, World</title>" & ¬
  15.     "</head>" & ¬
  16.     "<body>Hello, World!</body" & ¬
  17.     "</html>"
  18.